package com.five.community.mapper;

import com.five.community.bean.Housing;
import com.five.community.bean.vo.HousingVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface HousingMapper {

    //查询所有页面信息
    List<HousingVo> selectAllF() throws Exception;
    //查询所有房产信息
    List<Housing> selectAll() throws Exception;
    //根据property查询房产信息
    List<HousingVo> selectByName(String property) throws Exception;
    //添加插入房产信息
    void insert(Housing housing) throws Exception;
    //通过Id查询房产信息
    Housing selectById(long id) throws Exception;
    //更新房产信息
    void update(Housing housing) throws Exception;
    //删除房产信息
    void delete(long id) throws Exception;
}
